package com.sfh.base;

public abstract class Task {
	protected int mTaskRunSize;

	public abstract boolean run();

	public final boolean runTask() {
		this.mTaskRunSize++;
		boolean success = this.run();
		if (!success && mTaskRunSize > 5) {
			return true;
		}
		return success;
	}
}
